import asyncio
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "/root/work/arcfox-crawler"))
from com.arcfox.yiqing.spider.shfb_yiqing_spider import ShanghaiYiQingSpider


class ShanghaifbYiQingService:

    def __init__(self):
         self.shfb_yiqing_spider = ShanghaiYiQingSpider()

    async def start(self):
        tasks = [
             asyncio.create_task(self.shfb_yiqing_spider.start_crawl()),
        ]
        await asyncio.gather(*tasks)


if __name__ == "__main__":
    asyncio.run(ShanghaifbYiQingService().start())
